<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Title</title>
  <style>
    body{
      margin: 0;
      padding: 0;
    }
    div{
      width: 200px;
      height: 200px;
      margin: 20px;
      padding: 20px;
      border: 5px solid #000;
      background-color: red;
    }
    .div2{
      margin-top: 30px;
      background: green;
    }
    span{
      margin: 0 20px;
      padding: 20px;
      border: 5px solid #000;
      background-color: red;
    }
  </style>
</head>
<body>
  <div class="div1">div1</div>
  <div class="div2">div2</div>
  <hr>
  <span class="span1">span1</span>
</body>
</html>
